﻿@model Janus.Mes.VO.SysConfigVO

@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "缺陷等级—缺陷描述";
}
<div class="pageContent">
    <form method="post" action="System/SysConfig/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <p>
                <label>
                    所属缺陷分类：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "true", @Value = "FC001" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
            </p>
            <p>
                <label>
                    缺陷描述编号：
                </label>

                @if (ViewBag.IsCreate == true)
                {
                    @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @class = "required IsExisted", ajaxurl = "System/SysConfig/IsExist" })
                }
                else
                {
                    @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "true" })
                }
                @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
            </p>
            <p>
                <label>
                    缺陷描述：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p>
                <label>
                    缺陷等级：
                </label>
                @*@Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                    @Html.ValidationMessageFor(sysConfig => sysConfig.Title)*@
                <select id="FaultLeave" name="FaultLeave" class="required">
                    <option value="主要缺陷">主要缺陷</option>
                    <option value="次要缺陷">次要缺陷</option>
                    <option value="严重缺陷">严重缺陷</option>
                    <option value="安全缺陷">安全缺陷</option>
                </select>
            </p>
            <p>
                <label>
                    条码：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Id, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                <input type="button" id="NewBarcode" name="NewBarcode" value="条码生成" />
            </p>
            <p>
                <label>
                    备注：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            @Html.Partial("Operation", Model)
        </div>
        @Html.Partial("FormButtonBar")
    </form>
</div>
